﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace OL.FrameCore.Application.Role.Dto
{
    public class GetRoleResponse
    {
        public int Id { get; set; }
        public string RoleName { get; set; }
        public string Remark { get; set; }
        public List<RoleModuleModel> RoleModules { get; set; }
        public string RoleModulesJsonText
        {
            get {
                if (RoleModules == null)
                    return "[]";
                else
                    return JsonConvert.SerializeObject(RoleModules);
            }
        }
    }
}
